package eg.backend.repository;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import eg.backend.domain.GlobalShop;
import eg.backend.domain.Shop;

@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public interface ShopRepository extends TagInfoRepository<Shop> {
	GlobalShop getGlobalShop(String name);
	
	List<Shop> findUsedShops(String owner);
	
	List<String> findByNameAndOwner(String name, String owner);
	List<String> findNotUsedByNameAndOwner(String name, String owner);
	List<String> findAllGlobalShopNames();
}